import java.util.Scanner;
public class Task11 {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int k = sc.nextInt();
		int sum = sc.nextInt();
		int counter = 0;
		
		if(sum >= k){
			System.out.println("The first number is bigger or equal to k");
		} else {
			counter++;
		  }
		
		while(sum <= k){
			sum += sc.nextInt();
			counter++;
		}
		
		System.out.println("Broi: " + counter + " Sredno ar.: " + sum/counter);
		sc.close();
		
	}

}
